MACRO(ADD_DELAYLOAD_FLAGS flagsVar)
SET(dlls "${ARGN}")
FOREACH(dll ${dlls})
SET(${flagsVar} "${${flagsVar}} /DELAYLOAD:${dll}.dll")
ENDFOREACH()
ENDMACRO()


if(MSVC)
    set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMakePredefineTargets")
    set_property(GLOBAL PROPERTY USE_FOLDERS ON)
endif(MSVC)